export interface Msg{
  text: string,
  // 多久消失
  timeout?: number,
  type?: 'success' | 'error' | 'warn'
}

export interface MsgEvent{
  msg: Msg
}

export type NewMessageListener = (e: MsgEvent) => void
